
<%@ include file="/common/taglibs.jsp"%>
<!--分页查询共用的页面-->
<%@ include file="/common/common.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<script>
$().ready(function() {
 $("#entityForm").validate();

    Utility.setComboboxDefaultValue("actionOnDiskFull", '${entity.actionOnDiskFull}');
    Utility.setComboboxDefaultValue("sendVideoChannelStatus", '${entity.sendVideoChannelStatus}');
});
</script>
 <BODY>


<form id="entityForm" name="entityForm"  action="<%=ApplicationPath%>/videoServerConfig/save.action" method="post">
<input type="hidden" name="entityId"
					value="${entity.entityId}"/>
	<div>

		<table  width="100%"  class="TableBlock">
		<tbody><tr>
						<td colspan="2" style="font-weight: bold; background: #EFEFEF;" height="25">
						 配置信息:
								<input type="submit" class="button gray medium" value="保存">
						<span class="MessageFromServer">${message}</span>
						</td>
					</tr>
		<tr>
			<td width="20%">视频服务器IP地址:</td>
			<td align="left"><input type="text" name="videoServerIp"  value="${entity.videoServerIp}" id="videoServerIp"  value=20 class="required"/></td>
		</tr>
		<tr>
			<td>视频服务器Tcp端口:</td>
			<td align="left"><input type="text" name="videoServerTcpPort"  value="${entity.videoServerTcpPort}" id="videoSeverTcpPort"  value=20 class="required digits"/></td>
		</tr>
		<tr>
			<td>视频服务器Udp端口:</td>
			<td align="left"><input type="text" name="videoServerUdpPort"  value="${entity.videoServerUdpPort}" id="videoSeverUdpPort"  value=20 class="required digits"/></td>
		</tr>

		<tr>
			<td>视频拉流端口:</td>
			<td align="left"><input type="text" name="rtmpPort"  value="${entity.rtmpPort}" id="rtmpPort"  value=20 class="required digits"/></td>
		</tr>

		<tr>
			<td>FTP服务器IP地址:</td>
			<td align="left"><input type="text" name="ftpServerIp"  value="${entity.ftpServerIp}" id="ftpServerIp"   class="required"/></td>
		</tr>
		<tr>
			<td>FTP服务器端口:</td>
			<td align="left"><input type="text" name="ftpPort"  value="${entity.ftpPort}" id="ftpPort"   class="required digits"/></td>
		</tr>


		<tr>
				<td >FTP用户名:</td>
				<td align="left"><input type="text" name="ftpUserName" value="${entity.ftpUserName}" id="ftpUserName"  class="required"/>
			</tr>
				<tr>
				<td>FTP密码:</td>
				<td align="left"><input type="text" name="ftpPassword"  value="${entity.ftpPassword}" id="ftpPassword" class="required "/></td>
			</tr>
				<tr>
				<td>FTP文件目录:</td>
				<td align="left"><input type="text" name="ftpPath" value="${entity.ftpPath}" id="ftpPath" class="required" size="50"/></td>
			</tr>
		<tr>
			<td width="20%">报警附件服务器IP地址:</td>
			<td align="left"><input type="text" name="fileServerIp"  value="${entity.fileServerIp}" id="fileServerIp"  value=20 class="required"/></td>
		</tr>
		<tr>
			<td>报警附件服务器Tcp端口:</td>
			<td align="left"><input type="text" name="fileServerTcpPort"  value="${entity.fileServerTcpPort}" id="fileServerTcpPort"  value=20 class="required digits"/></td>
		</tr>
		<tr>
			<td>报警附件服务器Udp端口:</td>
			<td align="left"><input type="text" name="fileServerUdpPort"  value="${entity.fileServerUdpPort}" id="fileServerUdpPort"  value=20 class="required digits"/></td>
		</tr>
		<tr>
			<td>报警附件目录:</td>
			<td align="left"><input type="text" name="adasAlarmAttachmentFilePath" value="${entity.adasAlarmAttachmentFilePath}" id="adasAlarmAttachmentFilePath" class="required" size="50"/></td>
		</tr>
		<tr>
			<td>Htt服务器IP地址:</td>
			<td align="left"><input type="text" name="httpServerIp"  value="${entity.httpServerIp}" id="httpServerIp"   class="required"/></td>
		</tr>
		<tr>
			<td>Http服务器端口:</td>
			<td align="left"><input type="text" name="httpPort"  value="${entity.httpPort}" id="httpPort"   class="required digits"/></td>
		</tr>

		<tr>
			<td>是否下发实时音视频状态通知
			</td>
			<td><select name="sendVideoChannelStatus" id="sendVideoChannelStatus" style="width:150px;">
				<option value="false" selected>不下发</option>
				<option value="true" >下发</option>
			</select>
			</td>
		</tr>

		<tr>
			<td>视频存储容量(M):</td>
			<td align="left"><input type="text" name="diskCapacity"  value="${entity.diskCapacity}" id="diskCapacity"   class="required digits"/>MB (已用容量:${dataUsage}M)</td>
		</tr>
		<tr>
			<td>视频存储空间预警(M):</td>
			<td align="left">当可用空间小于<input type="text" name="minAvailableCapacity"  size="10" value="${entity.minAvailableCapacity}" id="minAvailableCapacity"   class="required digits"/>(MB)将报警</td>
		</tr>

		<tr>
			<td>存储空间满后
			</td>
			<td><select name="actionOnDiskFull" id="actionOnDiskFull" style="width:150px;">
				<option value="overwrite" selected>自动覆盖</option>
				<option value="stopRecord" selected>停止录像</option>
			</select>
			</td>
		</tr>
		<tr>
			<td>web界面无操作时间(分钟）:</td>
			<td align="left"><input type="text" name="webIdleTime"  value="${entity.webIdleTime}" id="webIdleTime"   class="required digits"/></td>
		</tr>
		<tr>
			<td>视频连接无数据传输时间(秒):</td>
			<td align="left"><input type="text" name="videoConnectionIdleTime"  value="${entity.videoConnectionIdleTime}" id="videoConnectionIdleTime"   class="required digits"/></td>
		</tr>

		<tr>
			<td>FFMpeg工具路径:</td>
			<td align="left"><input type="text" name="ffmpegPath"  value="${entity.ffmpegPath}" id="ffmpegPath"  size="50" class="required"/></td>
		</tr>

		<tr>
						<td colspan="2" align="center">
								<input type="submit" class="button gray medium" value="保存">
							(保存完毕后用户重新登录才能生效)
						</td>
					</tr>


</table>